import {service} from "@/config/request.js";
 
// 获取商品列表接口
export function productSearch(query) {
	return service({
		path: '/pigx-mall/app/mallProduct/productSearchByCategoryId',
		method: 'get', 
		params:query
	});
} 

 // 获取商品列表接口
 export function productSearchDetail(query) {
	 console.log(query)
 	return service({
 		path: '/pigx-mall/app/mallProduct/productSearch/' + query.productId,
 		method: 'get',  
 	});
 } 
// 添加购物车
export function addCar(query) {
	return service({
		path: '/pigx-mall/app/shoppingCar/add',
		method: 'post', 
		params:query
	});
} 